package com.woniuxy.background.dao;

import com.woniuxy.background.pojo.Orders;
import com.woniuxy.background.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface OrdersMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<Orders> selectAllByPage(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize, OrderVO vo);
}